package com.webbei.Backstage.action;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.webbei.Backstage.service.BackstateSer;
import com.webbei.pojo.Brands;

public class GetAllBrandForDeleteAction {
	private BackstateSer bao;
	private List<Brands> brands;
	public String execute(){
		brands=bao.getAllBrands();
		System.out.println(brands.toString());
		HttpServletResponse response=ServletActionContext.getResponse();
		response.setHeader("Pragma","No-cache");
		response.setHeader("Cache-Control","no-cache"); 
		response.setDateHeader("Expires", 0);
		return "success";
	}

	
	public List<Brands> getBrands() {
		return brands;
	}

	public void setBrands(List<Brands> brands) {
		this.brands = brands;
	}


	public BackstateSer getBao() {
		return bao;
	}


	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}

}
